package com.ltt.service;

import com.ltt.dao.pojo.Blog;
import com.ltt.dao.pojo.Likes;
import com.ltt.dao.vo.params.DeleteBlogParams;

import java.util.HashSet;
import java.util.List;

/**
 * @author ‘李天泰’
 * @version 1.0
 * @description: TODO
 * @date 2023/5/10 21:47
 */
public interface BlogService {
    int insertBlog(Blog blog);

    Blog findBlog(int id);

    void updateBlog(Blog blog);

    List<Blog> findBlogByOpenid(String openid);

    List<Blog> getAllBlog();

    List<Blog> findBlogByContent(String content);

    Likes findLikeBlog(Likes like);

    void addLikes(Likes likes);

    void cancelLikes(Likes likes);

    void deleteBlog(DeleteBlogParams deleteBlogParams);


    HashSet<Blog> getAllBlogsBy(String openid, String content, String label);
}
